#!/bin/bash

[ -f /opt/factory_test/scripts_lib/common.sh ] && source /opt/factory_test/scripts_lib/common.sh

ARG=$1
if [ $ARG == "stop" ];then
	man_kill $0 gst-play-1.0
	exit 0
fi

titel "DEC VIDEO"
if [ $VPU_PLATFORM == "GST" ];then
	export DISPLAY=:0
	VIDEO_LIST=$(ls $VPU_VIDEO_PATH/*.mp4)
	for i in $VIDEO_LIST
	do
		gst-play-1.0 --videosink="glimagesink" $i
	done
else
	echo "Not support this platform: $VPU_PLATFORM"
fi

man_exit 2
